#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
namespace Cephei.QL.Math.Statistics
{
     // <summary> 
	// ! It can accumulate a set of data and return statistics (e.g: mean, variance, skewness, kurtosis, error estimation, etc.)  \warning high moments are numerically unstable for high average/standardDeviation ratios.
	// </summary>
    [Guid ("902478F1-47B9-4914-88BA-892525DE6E70"),ComVisible(true)]
	public interface IIncrementalStatistics 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 IIncrementalStatistics Add(Double value, Microsoft.FSharp.Core.FSharpOption<Double> weight);
        
		 Double DownsideDeviation {get;}
        
		 Double DownsideVariance {get;}
        
		 Double ErrorEstimate {get;}
        
		 Double Kurtosis {get;}
        
		 Double Max {get;}
        
		 Double Mean {get;}
        
		 Double Min {get;}
        
		 IIncrementalStatistics Reset {get;}
        
		 UInt64 Samples {get;}
        
		 Double Skewness {get;}
        
		 Double StandardDeviation {get;}
        
		 Double Variance {get;}
        
		 Double WeightSum {get;}
    }

    // <summary> 
	// ! It can accumulate a set of data and return statistics (e.g: mean, variance, skewness, kurtosis, error estimation, etc.)  \warning high moments are numerically unstable for high average/standardDeviation ratios. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IIncrementalStatistics_Factory // : Collection_Factory<IIncrementalStatistics, ICell<IIncrementalStatistics>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    IIncrementalStatistics Create ();
    }
}

